package lab8.task5;

public class TextModifier {
	public static void main(String[] args) {
		String er="Error";
		if(args.length!=1){
			System.out.println(er);
			return;
		}
		
		String str = args[0];
		for (int i = 0; i < str.length(); i++) {
			char charAtIndex = str.charAt(i);
			if(Character.isDigit(charAtIndex)) {
				continue;
			}
			if(charAtIndex=='+'||charAtIndex=='-'){
				System.out.print(charAtIndex);
			}
			System.out.print(charAtIndex);
		}
	}

}
